import React, { Component } from 'react';
import { HashRouter, Switch, Route, Redirect } from 'react-router-dom';
import home from "@/pages/home/home";
import asyncComponent from '@/utils/asyncComponent';
// import production from '@/pages/production/production'

const production = asyncComponent(() => import("@/pages/production/production"));

export default class RouteConfig extends Component {
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/" exact component={home} />
                    <Route path="/production" component={production} />
                </Switch>
            </HashRouter>
        )
    }
}